//package com.wangnaiqi.pulsar.config;
//
//import org.apache.pulsar.client.api.PulsarClient;
//import org.apache.pulsar.client.api.PulsarClientException;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @author wangnaiqi
// * @description Pulsar服务配置
// * @date 2023/11/22
// */
//@Configuration
//public class PulsarServerConfig {
//    @Value("${pulsar.service.url}")
//    String pulsarUrl;
//
//    @Bean
//    public PulsarClient pulsarClient() {
//        PulsarClient client = null;
//            try {
//                client = PulsarClient.builder().serviceUrl(pulsarUrl).build();
//            } catch (PulsarClientException e) {
//                e.printStackTrace();
//                client = null;
//            }
//        return client;
//    }
//}
